function Layer(path,handler){
    this.path = path
    this.handler = handler
}

Layer.prototype.match = function(path){
    return this.path === path
}

Layer.prototype.handle = function(req,res,next){
    this.handler(req,res,next)
}

module.exports = Layer
